package com.pox.guli.service.statistics.feign;

import com.pox.guli.common.base.result.R;
import com.pox.guli.service.statistics.feign.fallback.UcenterMemberServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 会员信息统计
 *
 * @Author PoX21s
 * @Date: 2022/6/6 16:25
 * @Version 1.0
 */

@FeignClient(value = "service-ucenter", fallback = UcenterMemberServiceFallBack.class)
public interface UcenterMemberService {

    /**
     * 统计指定天数类注册人数
     *
     * @param day 日期范围
     * @return com.pox.guli.common.base.result.R
     */
    @GetMapping(value = "/admin/ucenter/member/count-register-num/{day}")
    R countRegisterNum(@PathVariable("day") String day);
}
